﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;

namespace ChoJu.Converters
{
    public class RatingBtnVisConverter : IValueConverter
    {
        public bool IsStartButton { get; set; }

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var bol = (bool)value;
            if (IsStartButton == true && bol == true)
                return Visibility.Collapsed;
            else if (IsStartButton == false && bol == false)
                return Visibility.Collapsed;
            else
                return Visibility.Visible;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
